package com.zmn.oms.services.interfaces.conf.attachment;

import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentCategory;
import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentCategoryQuery;

import java.util.List;

public interface ConfOrderAttachmentCategoryService {

    /**
     * 查询
     *
     * @param query
     * @return
     */
    List<ConfOrderAttachmentCategory> listByQuery(ConfOrderAttachmentCategoryQuery query);

    /**
     * 根据id集合进行查询
     *
     * @param idList
     * @return
     */
    List<ConfOrderAttachmentCategory> listByIds(List<Integer> idList);

    /**
     * 分页查询
     *
     * @return
     */
    List<ConfOrderAttachmentCategory> listPageByQuery(ConfOrderAttachmentCategoryQuery query);

    /**
     * 查询数量
     *
     * @param query
     * @return
     */
    int countByQuery(ConfOrderAttachmentCategoryQuery query);

    /**
     * 根据ID 查询
     *
     * @param id
     * @return
     */
    ConfOrderAttachmentCategory findCategoryById(Integer id);

    /**
     * 修改
     *
     * @param category
     */
    void updateCategoryById(ConfOrderAttachmentCategory category);

    /**
     * 新增
     *
     * @param category
     */
    Integer insertCategory(ConfOrderAttachmentCategory category);

    Integer batchModifyCategoryStatus(ConfOrderAttachmentCategory conf, List<String> categIdList);
}
